import { postAxios, getAxios, postDownloadAxios } from "@/lib/http";

export const wheelApi = {
  // 获取详情
  getById: data => {
    return getAxios(`/wheel/getById/${data}`);
  },
  // 添加车轮 @author 何杺
  addWheel: data => {
    return postAxios("/wheel/add", data);
  },
  // 分页查询车轮 @author 何杺
  queryWheel: data => {
    return postAxios("/wheel/page/query", data);
  },
  // 批量删除车轮 @author 何杺
  batchDeleteWheel: idList => {
    return postAxios("/wheel/deleteByIds", idList);
  },
  // 修改车轮  @author 何杺
  updateWheel: data => {
    return postAxios("/wheel/update", data);
  },
  // 导出全部  @author 何杺
  exportAll: data => {
    return postDownloadAxios("/wheel/export/all", data);
  },
  // 批量导出  @author 何杺
  batchExport: idList => {
    return postDownloadAxios("/wheel/export/batch", idList);
  }
};
